<template>
 <h2>本地的 todo list 代办清单</h2>
 <button @click="addFF">创建</button>
 <el-table :data="todoList" style="width: 100%">
    <el-table-column prop="content" label="内容" width="180">1</el-table-column>
    <el-table-column prop="date" label="时间" width="180">2</el-table-column>
    <el-table-column prop="operation" label="操作" width="180">
      <el-button type="danger">删除</el-button>
      <el-button type="primary">编辑</el-button>
    </el-table-column>
  </el-table>
<add-form :isShowDialog="isShowDialog"></add-form>
</template>

<script>
import addForm from './components/addForm'
export default {
  name: '',
  components: {addForm},
  data() {
    return {
  todoList:[{content:1,date:2,operation:3}],
  isShowDialog:false
    }
  },
  created() {},
  mounted() {},
  methods: {
    // 新增todo
    addFF(){
      isShowDialog:true
    }
  }
}
</script>

  <style scoped lang="scss">

  </style>
